package com.mrx.spring.user.service;

import com.alibaba.fastjson2.JSON;
import com.mrx.spring.user.model.po.UserPO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import java.util.Collection;
import java.util.List;

/**
 * @author Mr.X
 * @since 2024/6/2 上午10:04
 */
@Service
public class UserService {

    private static final Logger logger = LoggerFactory.getLogger(UserService.class);

    public UserPO login(UserPO user) {
        logger.info("尝试登录: {}", JSON.toJSONString(user));
        return user;
    }

    public List<UserPO> findByIds(Collection<Long> ids) {
        logger.info("findByIds: {}", ids);
        return List.of();
    }

    public void saveBatch(List<UserPO> users) {
        logger.info("saveBatch: {}", users);
    }

}
